import {Order} from '../orderOk/order-model.js';
var order = new Order();
Page({
  data: {
    orderid:null
  },
  onLoad(options) {
    order.getOrderAndProductDetail(options.id,(data)=>{
      this.setData({
        orderArr:data.data
    })
    })
  },
  copy(e){
    my.setClipboard({
      text: e.currentTarget.dataset.no,
      success: ( res ) => {
        my.showToast({
          content:"复制成功"
        });
      },
    });
  },
  //查看分期账单
  rent:function(e)
  {
    var id = e.currentTarget.dataset.id;
    my.navigateTo({
      url:"/pages/detailOrder/detailOrder?id="+id
    });
  }
});
